home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / trueSpace 7.6 / tS761B8Std.exe / {app} / Scripts / MaterialEditor / Bricks / Texturing / tex2D.HLSL.Brick.xml < prev    next >
Extensible Markup Language  |  2008-06-10  |  793b  |  13 lines

  1. <?xml version="1.0" encoding="utf-8" ?> 
  2. <ME_BRICK GUID="{B677DD9C-6C50-4784-8716-9500016543C4}" Name="RtTex2D" GUIName="Tex2D" Description="Sample the 2D texture at given texture coordinates [tex2d]">
  3.     <ME_BRICK_INPUTPARAM GUID="{4A5B7896-7616-44A9-B29A-CE58E01D48AB}" Name="Sampler2D" Type="RtSampler2D"/>
  4.     <ME_BRICK_INPUTPARAM GUID="{B4457FF5-8152-4F76-AB17-5A52D35CA658}" Name="vTexCoord3" Type="RtFloat3"/>
  5.     <ME_BRICK_OUTPUTPARAM GUID="{3BFA8A8A-FE5A-4F6F-B77A-5F09BD538672}" Name="vTextureColor4" Type="RtFloat4"/>
  6.     <ME_BRICK_CODE><![CDATA[
  7.         void RtTex2D(in RtSampler2D Sampler2D, in RtFloat3 vTexCoord3, out RtFloat4 vTextureColor4)
  8.         {
  9.             vTextureColor4 = rtx_Tex2D(Sampler2D, vTexCoord3.xy);
  10.         }
  11.     ]]></ME_BRICK_CODE>
  12. </ME_BRICK>
  13.